#连接数据库
HOSTNAME = "backend.tp.zzzsleep.icu"
PORT = 3306
USERNAME = "TruePhoto"
PASSWORD = "Rwj6xDLwMFihBPB5"
DATABASE = "truephoto"
DB_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8mb4'.format(USERNAME,PASSWORD,HOSTNAME,PORT,DATABASE)
SQLALCHEMY_DATABASE_URI = DB_URI
SQLALCHEMY_TRACK_MODIFICATIONS = True
SECRET_KEY = ""
#映射三部曲
#flask db init  #只执行一次
#flask db migrate #可以识别新增字段 #识别ORM模型的改变，生成迁移脚本
#flask db upgrade 运行迁移脚本，同步到数据库中

#配置邮箱
MAIL_SERVER = 'smtp.qq.com'
MAIL_PORT = 465
MAIL_USE_TLS = False
MAIL_USE_SSL = True
MAIL_USERNAME = '1371154400@qq.com'
MAIL_PASSWORD = 'fatxesfrosomjbja'
MAIL_DEFAULT_SENDER ="1371154400@qq.com"
#fatxesfrosomjbja
